import {request} from '@/utils/request'
export function getAppIdList(params) {
    return request({
        url: '/api/fizz-manager/flow-control-rule/app/list',
        method: 'get',
        params
    })
}
/**
 * @returns 前端服务名下拉选择框
 */
 export function getFrontendDict() {
    return request({
        url: '/api/fizz-manager/flow-control-rule/frontend-service-list',
        method: 'get',
    })
}
/**
 *  应用名 appID
 */
export function getAppDict() {
    return request({
        url: '/api/fizz-manager/blade-app-auth/simple-list',
        method: 'get',
    })
}
/**
 *  保存
 */
 export function save(data) {
    return request({
        url: '/api/fizz-manager/flow-control-rule/app/save',
        method: 'post',
        data
    })
}
/**
 *  修改
 */
 export function update(data) {
    return request({
        url: '/api/fizz-manager/flow-control-rule/app/update',
        method: 'post',
        data
    })
}
/**
 *  删除
 */
 export function remove(ids) {
    return request({
        url: '/api/fizz-manager/flow-control-rule/app/remove?ids='+ids,
        method: 'post',
    })
}